extends StateBase

##状态所属
@export var enemy: BaseEnemy

func enter() -> void:
	enemy.create_fall_item()
	super.enter()
	enemy.animation_player.play("dying")
	enemy.hurtbox.monitorable = false

func physics_process_update(delta: float) -> void:
	super.physics_process_update(delta)
	if not enemy.animation_player.is_playing():
		enemy.die()
